package com.daniu101.productbargan.utils;

public class MainTest {

    public static void main(String[] args) {

        String phone = "2134@123432";

        if (phone.indexOf("@") == -1){
            System.out.println("手机号码");
        }else {
            System.out.println("邮箱");
        }

    }

}
